//
//  DownloaderHelper.h
//  网易公开课项目
//
//  Created by 林 艺 on 13-11-25.
//  Copyright (c) 2013年 Marklin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"
#import "ASINetworkQueue.h"
#import "DownloaderHelperDelegate.h"


@interface DownloaderHelper : NSObject<ASIHTTPRequestDelegate, ASIProgressDelegate>
{
    ASINetworkQueue *_networkQueue;
    NSMutableDictionary *_allFilelengthData;
    NSMutableDictionary *_allReceivedFilelengthData;
}

@property(nonatomic, assign)id<DownloaderHelperDelegate>delegate;

+ (id)shareInstance;//单例模式 根据项目需求初始化

- (id)init;
- (void)startDownload:(NSString *)downloadURL withKey:(NSString *)fileKey;
- (void)pauseDownload:(NSString *)fileKey;
- (void)clearDatachache;

@end
